<template>
	<div class="btn-radio">
		<el-radio-group @change="$emit('change')" v-model="form" size="mini">
			<el-radio-button v-for="(item,index) of list" :key="index" :label="item.value">{{item.label}}</el-radio-button>
		</el-radio-group>
	</div>
</template>

<script>
  import vModelMixins from '../../mixins/vModelMixins'

  export default {
    name: 'btn-radio',
    mixins: [vModelMixins],
    props: {
      list: {
        type: Array,
        require: true
      }
    },
    data() {
      return {
        form: undefined
      }
    }
  }
</script>
